<template>
  <router-view style="margin-bottom: 2rem"/>
  <!--  实现底部导航-->
  <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000"  route>
    <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item replace to="/classification" icon="apps-o">分类</van-tabbar-item>
    <van-tabbar-item replace to="/shopping" icon="cart-o">购物车</van-tabbar-item>
    <van-tabbar-item replace to="/my" icon="user-o">我的</van-tabbar-item>
  </van-tabbar>

</template>
<script>
  import { ref } from 'vue';
  export default {
    setup() {
      const active = ref(0);
      return { active };
    },
  }
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>
